package day14_io.demo03_编码;

import java.io.BufferedInputStream;
import java.io.FileInputStream;

public class Demo04_读内容为汉字的文件 {
    public static void main(String[] args) throws Exception{
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("E:\\csw\\Demo\\csw1\\csw3.txt"));
        byte[] b = new byte[3];
//        bis.read(b);
//        String s = new String(b);
//        System.out.println(s);//输出第一个
        int i;
        while ((i=bis.read(b))!=-1){
            String s = new String(b);
            System.out.println(s);
        }
        bis.close();
    }
}
